execute as @a[scores={food=10}] at @s run effect give @s regeneration 10 2
execute as @a[scores={food=5}] at @s run effect give @s regeneration 10 2
execute as @a[scores={food=1}] at @s run effect give @s regeneration 10 2
execute as @a[nbt={Inventory:[{id:"minecraft:nether_star",tag:{Tags:["star"]}}]}] at @s run function bdd:b/star
execute as @a[nbt={Inventory:[{id:"minecraft:echo_shard",tag:{Tags:["echo"]}}]}] at @s run function bdd:b/warden
execute as @e[type=item,nbt={Item:{id:"minecraft:nether_star",tag:{Tags:["star"]}}}] at @s run function bdd:b/star
execute as @e[type=item,nbt={Item:{id:"minecraft:echo_shard",tag:{Tags:["echo"]}}}] at @s run function bdd:b/warden